import axios from "./axios";

export const getNews = (params) =>
    axios.get(`/news/getnews`, { params })

export const getNewComment = (params) =>
    axios.post('/news/single', { params })

export const getNewsCommentImg = (params) =>
    axios.get('/newscommentimg/single', { params })

// export const getNews = (page,type)=>
//     axios.get(`/news/pageList`,{params: {type,page}})

// export const getNews = (page,type)=>
//     axios.get(`/news/pageList?newsType=${type}&page=${page}`)
